<style scoped>
  @import "subject-edit.less";
</style>
<template>
  <div>

      <Card class="banner-edit-card" style="">
        <Input class="input-item" type="text" v-model="cdata.title" style="width: 230px;margin: 2px;" placeholder="专题名">
          <span slot="prepend">专题名称:</span>
        </Input>
        <QActionEdit @action-data-change="selected" :init-item="cdata" :limit-type="true"></QActionEdit>
<!--        <div class="banner-edit-del-wrap">-->
<!--          <Icon type="ios-trash-outline" class="banner-edit-del" :size="26" @click.native="del(index)"></Icon>-->
<!--        </div>-->
      </Card>
<!--    <div class="add-wrap">-->
<!--      <Button @click="add" class="add-btn">-->
<!--        <Icon type="md-add-circle" size="20"/>-->
<!--      </Button>-->
<!--    </div>-->
  </div>

</template>
<script>
  import QActionEdit from '../../action-edit'
  export default {
    name: 'qsubject-edit',
    props: {
      cdata: {
        type: Object,
        default: function () {
          return {type: this.GLOBAL.TYPE_LINK_SUBJECT,img:[],title:'',value:null};
        }
      }
    },
    components: {
        QActionEdit
    },
    data() {
      return {}
    },
    created(){
    },
    methods: {
        selected(data) {
            this.cdata = data.data;
        }
    }
  }
</script>
